/*
 * Project Beknyou
 * Copyright (c) 2010-2011 Saint Paul College, All Rights Reserved
 * Redistributions in source code form must reproduce the above
 * Copyright and this condition.
 * The contents of this file are subject to the GNU General Public
 * License, Version 2 (the "License"); you may not use this file
 * except in compliance with the License. A copy of the License is
 * available at http://www.opensource.org/licenses/gpl-license.php.
 */
package com.benkyou.common.messages;

import com.jme3.network.AbstractMessage;
import com.jme3.network.serializing.Serializable;

/**
 *
 * @author Austin Allman
 */
@Serializable
public class PlayerMessage extends AbstractMessage {

    private String name;
    private int id;
    private float x;
    private float y;
    private float z;
    private float posX;
    private float posY;
    private float posZ;
    private boolean move;
    private String animName;
    private String uuid;

    public PlayerMessage() {
    }

    public PlayerMessage(String name, int id, String uuid) {
        this.name = name;
        this.id = id;
        this.uuid = uuid;
        move = false;
 
    }
    public PlayerMessage(String name, boolean move, String animName,float x, float y, float z, float posX, float posY, float posZ){
        this.name = name;
        this.move = move;
        this.animName = animName;
        this.x = x;
        this.y = y;
        this.z = z;
        this.posX = posX;
        this.posY = posY;
        this.posZ = posZ;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the x
     */
    public float getX() {
        return x;
    }

    /**
     * @param x the x to set
     */
    public void setX(int x) {
        this.x = x;
    }

    /**
     * @return the y
     */
    public float getY() {
        return y;
    }

    /**
     * @param y the y to set
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * @return the z
     */
    public float getZ() {
        return z;
    }

    /**
     * @param z the z to set
     */
    public void setZ(int z) {
        this.z = z;
    }

    /**
     * @return the move
     */
    public boolean isMove() {
        return move;
    }

    /**
     * @param move the move to set
     */
    public void setMove(boolean move) {
        this.move = move;
    }
    public String getUUID(){
        return uuid;
    }

    /**
     * @return the posX
     */
    public float getPosX() {
        return posX;
    }

    /**
     * @return the posY
     */
    public float getPosY() {
        return posY;
    }

    /**
     * @return the posZ
     */
    public float getPosZ() {
        return posZ;
    }

    /**
     * @return the animName
     */
    public String getAnimName() {
        return animName;
    }

    /**
     * @return the uuid
     */
    public String getUuid() {
        return uuid;
    }

    /**
     * @param x the x to set
     */
    public void setX(float x) {
        this.x = x;
    }

    /**
     * @param y the y to set
     */
    public void setY(float y) {
        this.y = y;
    }

    /**
     * @param z the z to set
     */
    public void setZ(float z) {
        this.z = z;
    }

    /**
     * @param posX the posX to set
     */
    public void setPosX(float posX) {
        this.posX = posX;
    }

    /**
     * @param posY the posY to set
     */
    public void setPosY(float posY) {
        this.posY = posY;
    }

    /**
     * @param posZ the posZ to set
     */
    public void setPosZ(float posZ) {
        this.posZ = posZ;
    }

    /**
     * @param animName the animName to set
     */
    public void setAnimName(String animName) {
        this.animName = animName;
    }

    /**
     * @param uuid the uuid to set
     */
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    
    
}
